using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;using Maxleaf.EDI.Domain.K3;

namespace Maxleaf.EDI.DataAccess.K3
{
    public class t_DataRightSchemaUserMap : EntityTypeConfiguration<t_DataRightSchemaUser>
    {
        public t_DataRightSchemaUserMap()
        {
            // Primary Key
            this.HasKey(t => new { t.FUserID, t.FSchemaID });

            // Properties
            this.Property(t => t.FUserID)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            // Table & Column Mappings
            this.ToTable("t_DataRightSchemaUser");
            this.Property(t => t.FUserID).HasColumnName("FUserID");
            this.Property(t => t.FSchemaID).HasColumnName("FSchemaID");
        }
    }
}
